//使用对象进行限制 事件名在编译时即可知道是否重复
const BusModuleEnum = {
  ac: {
    //airCity下的事件总线
    leftMouseClickTileLayer: "leftMouseClickTileLayer", //左键点击图层事件
    onReady: "onReady" //sdk就绪时
  }
};
//添加模块名称前缀
const deepRewrite = (node: any, parentKey?: string) => {
  if (typeof node === "object") {
    for (const key in node) {
      if (typeof node[key] === "object") {
        deepRewrite(node[key], key);
      } else {
        node[key] = parentKey + ":" + node[key];
      }
    }
  }
};
deepRewrite(BusModuleEnum);

export { BusModuleEnum };
